package admin;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.regex.Pattern;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Administration
 */
public class Administration extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public Administration() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		System.out.println("TO BE DONE");
		
		response.setContentType("text/html");
		response.setBufferSize(8192);
		
		PrintWriter out = response.getWriter();
		
		// then write the data of the response
		out.println("<html>" + "<head><title>Reponse requete de cinema et film</title></head>");
				
		// then write the data of the response
		out.println("<body><h2>TODO</h2>");
		out.println("<p>TO BE DONE");
		
	
		
		
		
		out.println("<p><a href=\"index.html\">back</a>");
		out.println("</body></html>");
		out.close();
	}

}
